﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Helper="clr-namespace:Spread_Wings_Demo.Helper">
    <Style TargetType="Helper:FocusIndicator">
        <Setter Property="IsHitTestVisible" Value="False" />
        <Setter Property="BorderBrush" Value="#80FF0000" />
        <Setter Property="BorderThickness" Value="5" />
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="Margin" Value="3,3,1000,200" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Helper:FocusIndicator">
                    <Grid Margin="-3,-3,-1003,-203">
                        <Border Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="3"
                                Margin="0,0,1000,200">
                        </Border>
                        <Border
                                HorizontalAlignment="Right" VerticalAlignment="Bottom"
                                Width="1000" Height="200"
                                Background="Transparent"
                                Visibility="{TemplateBinding ElementNameVisibility}">
                            <TextBlock Text="{TemplateBinding FocusedElement}" Foreground="Red" />
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
